home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
maximus
/
mtd_103.zip
/
MT-NEWS.ARJ
/
MAXREIPC.DOC
next >
Wrap
Text File
|
1993-02-25
|
5KB
|
117 lines
╔═════════════════════════════════════╗
║ Maximus Random Errorlevel Generator ║
║─────────────────────────────────────║
║ Faking a second node with MaxIPC ║
╚═════════════════════════════════════╝
1. Purpose: To generate a random errorlevel from a user specified
range of numbers, to be used in a batch file.
2. Usage: MaxRE Ln Hn
│ └────── Highest number you want generated (no limit)
│
└───────── Lowest number you want generated
3. MaxRE will then generate a random number between the numbers you
specify (inclusive) and return a DOS errorlevel to be use in a
batch file.
4. Example: MaxRE 1 10 will return random errorlevels ranging from
1 to 10.
5. Example batch file for use with Maximus IPC creator:
Notes: - This batch example assume you have MAXIPC.ZIP, which creates
"fake" displays when an on-line Maximus user is shown "Who
is on." (Freq'able as MAXIPC.ZIP at Fidonet 1:350/501 - v32bis
if you can't get it closer to home)
- This batch assumes you run this fairly often. I run it in the
"After_Call" section of my mailer's batch file AND at the end
of my local logon batch file.
- You may have to play around with where you call this batch
file if you intend on using it on a "real" node.
- You may also think about running MaxRE twice for each IPC
message... once to choose the user, and a second time to
choose the fake user's actions (obviously you'll want to
choose an action which the fake user cannot be paged while
doing. *grin*)
Okay here's the batch file:
d: <── Change to my IPC dir (a ram drive)
if exist d:\local.on goto end <── I use node #2 exclusively for local
c:\Max\IPC\MaxRe 1 10 <──────┐ operation and use a semafore flag
If ErrorLevel 10 GoTo 10 │ file to stop this fake from happening
If ErrorLevel 9 GoTo 9 │ if I'm on the BBS.
If ErrorLevel 8 GoTo 8 │
If ErrorLevel 7 GoTo 7 └─── C:\Max\IPC\MaxRe 1 10
If ErrorLevel 6 GoTo 6
If ErrorLevel 5 GoTo 5 └──┴───┴───┤ │ │
If ErrorLevel 4 GoTo 4 │ │ └─ Highest number
If ErrorLevel 3 GoTo 3 │ │ I want.
If ErrorLevel 2 GoTo 2 │ │
If ErrorLevel 1 GoTo 1 │ └─── Lowest number
GoTo End <─── A "catchall" └──────┐ I want.
:10 │
C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller" └── Full pathname
GoTo End to MaxRE.exe.
:9
C:\Max\IPC\IPC 2 "Joe Blow" "Running external program"
GoTo End
:8
C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
GoTo End
:7
C:\Max\IPC\IPC 2 "John Doe" "Running external program"
GoTo End
:6
C:\Max\IPC\IPC 2 "Jane Doe" "Unavailable for chat"
GoTo End
:5
C:\Max\IPC\IPC 2 "James Smith" "Running external program"
GoTo End
:4
C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
GoTo End
:3
C:\Max\IPC\IPC 2 "Capt Kirk" "Transferring a file"
GoTo End
:2
C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
GoTo End
:1
C:\Max\IPC\IPC 2 "Front Door" "Waiting for caller"
:End
C: <──┐ │ │ │ └─── Action of fake user/program.
CD\Fd <┐ │ │ │ │
│ │ │ │ └────────────────── Name of either fake user or
│ │ │ │ fake program.
│ │ │ │
│ │ │ └───────────────────────── Node number for fake user or
│ │ │ program to show usage on.
│ │ │
│ │ └───────────────────────────── Full pathname to IPC.EXE
│ │
│ └─────────────────────────────── Don't forget to change back
│ from your ramd drive if used.
│
└───────────────────────────────── And finally back to your
mailer's dir.
6. Disclaimer: Standard disclaimer in force... namely; author assumes no
responsibility for any damages incurred by use of this program,
whether direct or consequential. (If it breaks in two, you own both
pieces).
7. That's all folks!